<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl - The Perl 5 language interpreter - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl">5.35.1</a>
          <a class="dropdown-item active" href="perl.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl.html">perl</a>
          <div id="more">
            (<a href="perl.txt">source</a>,
            <a href="https://metacpan.org/pod/perl">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#SYNOPSIS">SYNOPSIS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#GETTING-HELP">GETTING HELP</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl.html#Overview">Overview</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#Tutorials">Tutorials</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#Reference-Manual">Reference Manual</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#Internals-and-C-Language-Interface">Internals and C Language Interface</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#History">History</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#Miscellaneous">Miscellaneous</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#Language-Specific">Language-Specific</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#Platform-Specific">Platform-Specific</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#Stubs-for-Deleted-Documents">Stubs for Deleted Documents</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#AVAILABILITY">AVAILABILITY</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#ENVIRONMENT">ENVIRONMENT</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#AUTHOR">AUTHOR</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#FILES">FILES</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#SEE-ALSO">SEE ALSO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#DIAGNOSTICS">DIAGNOSTICS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#BUGS">BUGS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl.html#NOTES">NOTES</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl.html#NAME">#</a>NAME</h1>

<p>perl - The Perl 5 language interpreter</p>

<h1 id="SYNOPSIS"><a class="permalink" href="perl.html#SYNOPSIS">#</a>SYNOPSIS</h1>

<p><b>perl</b> <span style="white-space: nowrap;">[ <b>-sTtuUWX</b> ]</span> <span style="white-space: nowrap;">[ <b>-hv</b> ] [ <b>-V</b>[:<i>configvar</i>] ]</span> <span style="white-space: nowrap;">[ <b>-cw</b> ] [ <b>-d</b>[<b>t</b>][:<i>debugger</i>] ] [ <b>-D</b>[<i>number/list</i>] ]</span> <span style="white-space: nowrap;">[ <b>-pna</b> ] [ <b>-F</b><i>pattern</i> ] [ <b>-l</b>[<i>octal</i>] ] [ <b>-0</b>[<i>octal/hexadecimal</i>] ]</span> <span style="white-space: nowrap;">[ <b>-I</b><i>dir</i> ] [ <b>-m</b>[<b>-</b>]<i>module</i> ] [ <b>-M</b>[<b>-</b>]<i>&#39;module...&#39;</i> ] [ <b>-f</b> ]</span> <span style="white-space: nowrap;">[ <b>-C [<i>number/list</i>] </b>]</span> <span style="white-space: nowrap;">[ <b>-S</b> ]</span> <span style="white-space: nowrap;">[ <b>-x</b>[<i>dir</i>] ]</span> <span style="white-space: nowrap;">[ <b>-i</b>[<i>extension</i>] ]</span> <span style="white-space: nowrap;">[ [<b>-e</b>|<b>-E</b>] <i>&#39;command&#39;</i> ] [ <b>--</b> ] [ <i>programfile</i> ] [ <i>argument</i> ]...</span></p>

<p>For more information on these options, you can run <a href="perlrun.html"><code>perldoc perlrun</code></a>.</p>

<h1 id="GETTING-HELP"><a class="permalink" href="perl.html#GETTING-HELP">#</a><a id="GETTING"></a>GETTING HELP</h1>

<p>The <i>perldoc</i> program gives you access to all the documentation that comes with Perl. You can get more documentation, tutorials and community support online at <a href="https://www.perl.org/">https://www.perl.org/</a>.</p>

<p>If you&#39;re new to Perl, you should start by running <a href="perlintro.html"><code>perldoc perlintro</code></a>, which is a general intro for beginners and provides some background to help you navigate the rest of Perl&#39;s extensive documentation. Run <a href="perldoc.html"><code>perldoc perldoc</code></a> to learn more things you can do with <i>perldoc</i>.</p>

<p>For ease of access, the Perl manual has been split up into several sections.</p>

<h2 id="Overview"><a class="permalink" href="perl.html#Overview">#</a>Overview</h2>

<pre><code class="nohighlight">perl		Perl overview (this section)
<a href="perlintro.html">perlintro</a>		Perl introduction for beginners
<a href="perlrun.html">perlrun</a>		Perl execution and options
<a href="perltoc.html">perltoc</a>		Perl documentation table of contents</code></pre>

<h2 id="Tutorials"><a class="permalink" href="perl.html#Tutorials">#</a>Tutorials</h2>

<pre><code class="nohighlight"><a href="perlreftut.html">perlreftut</a>		Perl references short introduction
<a href="perldsc.html">perldsc</a>		Perl data structures intro
<a href="perllol.html">perllol</a>		Perl data structures: arrays of arrays

<a href="perlrequick.html">perlrequick</a> 	Perl regular expressions quick start
<a href="perlretut.html">perlretut</a>		Perl regular expressions tutorial

<a href="perlootut.html">perlootut</a>		Perl OO tutorial for beginners

<a href="perlperf.html">perlperf</a>		Perl Performance and Optimization Techniques

<a href="perlstyle.html">perlstyle</a>		Perl style guide

<a href="perlcheat.html">perlcheat</a>		Perl cheat sheet
<a href="perltrap.html">perltrap</a>		Perl traps for the unwary
<a href="perldebtut.html">perldebtut</a>		Perl debugging tutorial

<a href="perlfaq.html">perlfaq</a>		Perl frequently asked questions
  <a href="perlfaq1.html">perlfaq1</a>		General Questions About Perl
  <a href="perlfaq2.html">perlfaq2</a>		Obtaining and Learning about Perl
  <a href="perlfaq3.html">perlfaq3</a>		Programming Tools
  <a href="perlfaq4.html">perlfaq4</a>		Data Manipulation
  <a href="perlfaq5.html">perlfaq5</a>		Files and Formats
  <a href="perlfaq6.html">perlfaq6</a>		Regexes
  <a href="perlfaq7.html">perlfaq7</a>		Perl Language Issues
  <a href="perlfaq8.html">perlfaq8</a>		System Interaction
  <a href="perlfaq9.html">perlfaq9</a>		Networking</code></pre>

<h2 id="Reference-Manual"><a class="permalink" href="perl.html#Reference-Manual">#</a><a id="Reference"></a>Reference Manual</h2>

<pre><code class="nohighlight"><a href="perlsyn.html">perlsyn</a>		Perl syntax
<a href="perldata.html">perldata</a>		Perl data structures
<a href="perlop.html">perlop</a>		Perl operators and precedence
<a href="perlsub.html">perlsub</a>		Perl subroutines
<a href="perlfunc.html">perlfunc</a>		Perl built-in functions
  <a href="perlopentut.html">perlopentut</a>	Perl open() tutorial
  <a href="perlpacktut.html">perlpacktut</a>	Perl pack() and unpack() tutorial
<a href="perlpod.html">perlpod</a>		Perl plain old documentation
<a href="perlpodspec.html">perlpodspec</a> 	Perl plain old documentation format specification
<a href="perldocstyle.html">perldocstyle</a>	Perl style guide for core docs
<a href="perlpodstyle.html">perlpodstyle</a>	Perl POD style guide
<a href="perldiag.html">perldiag</a>		Perl diagnostic messages
<a href="perldeprecation.html">perldeprecation</a>     Perl deprecations
<a href="perllexwarn.html">perllexwarn</a> 	Perl warnings and their control
<a href="perldebug.html">perldebug</a>		Perl debugging
<a href="perlvar.html">perlvar</a>		Perl predefined variables
<a href="perlre.html">perlre</a>		Perl regular expressions, the rest of the story
<a href="perlrebackslash.html">perlrebackslash</a>	Perl regular expression backslash sequences
<a href="perlrecharclass.html">perlrecharclass</a>	Perl regular expression character classes
<a href="perlreref.html">perlreref</a>		Perl regular expressions quick reference
<a href="perlref.html">perlref</a>		Perl references, the rest of the story
<a href="perlform.html">perlform</a>		Perl formats
<a href="perlobj.html">perlobj</a>		Perl objects
<a href="perltie.html">perltie</a>		Perl objects hidden behind simple variables
  <a href="perldbmfilter.html">perldbmfilter</a>	Perl DBM filters

<a href="perlipc.html">perlipc</a>		Perl interprocess communication
<a href="perlfork.html">perlfork</a>		Perl fork() information
<a href="perlnumber.html">perlnumber</a>		Perl number semantics

<a href="perlthrtut.html">perlthrtut</a>		Perl threads tutorial

<a href="perlport.html">perlport</a>		Perl portability guide
<a href="perllocale.html">perllocale</a>		Perl locale support
<a href="perluniintro.html">perluniintro</a>	Perl Unicode introduction
<a href="perlunicode.html">perlunicode</a> 	Perl Unicode support
<a href="perlunicook.html">perlunicook</a> 	Perl Unicode cookbook
<a href="perlunifaq.html">perlunifaq</a>		Perl Unicode FAQ
<a href="perluniprops.html">perluniprops</a>	Index of Unicode properties in Perl
<a href="perlunitut.html">perlunitut</a>		Perl Unicode tutorial
<a href="perlebcdic.html">perlebcdic</a>		Considerations for running Perl on EBCDIC platforms

<a href="perlsec.html">perlsec</a>		Perl security
<a href="perlsecpolicy.html">perlsecpolicy</a>	Perl security report handling policy

<a href="perlmod.html">perlmod</a>		Perl modules: how they work
<a href="perlmodlib.html">perlmodlib</a>		Perl modules: how to write and use
<a href="perlmodstyle.html">perlmodstyle</a>	Perl modules: how to write modules with style
<a href="perlmodinstall.html">perlmodinstall</a>	Perl modules: how to install from CPAN
<a href="perlnewmod.html">perlnewmod</a>		Perl modules: preparing a new module for distribution
<a href="perlpragma.html">perlpragma</a>		Perl modules: writing a user pragma

<a href="perlutil.html">perlutil</a>		utilities packaged with the Perl distribution

<a href="perlfilter.html">perlfilter</a>		Perl source filters

<a href="perldtrace.html">perldtrace</a>		Perl&#39;s support for DTrace

<a href="perlglossary.html">perlglossary</a>	Perl Glossary</code></pre>

<h2 id="Internals-and-C-Language-Interface"><a class="permalink" href="perl.html#Internals-and-C-Language-Interface">#</a><a id="Internals"></a>Internals and C Language Interface</h2>

<pre><code class="nohighlight"><a href="perlembed.html">perlembed</a>		Perl ways to embed perl in your C or C++ application
<a href="perldebguts.html">perldebguts</a> 	Perl debugging guts and tips
<a href="perlxstut.html">perlxstut</a>		Perl XS tutorial
<a href="perlxs.html">perlxs</a>		Perl XS application programming interface
<a href="perlxstypemap.html">perlxstypemap</a>	Perl XS C/Perl type conversion tools
<a href="perlclib.html">perlclib</a>		Internal replacements for standard C library functions
<a href="perlguts.html">perlguts</a>		Perl internal functions for those doing extensions
<a href="perlcall.html">perlcall</a>		Perl calling conventions from C
<a href="perlmroapi.html">perlmroapi</a>		Perl method resolution plugin interface
<a href="perlreapi.html">perlreapi</a>		Perl regular expression plugin interface
<a href="perlreguts.html">perlreguts</a>		Perl regular expression engine internals

<a href="perlapi.html">perlapi</a>		Perl API listing (autogenerated)
<a href="perlintern.html">perlintern</a>		Perl internal functions (autogenerated)
<a href="perliol.html">perliol</a>		C API for Perl&#39;s implementation of IO in Layers
<a href="perlapio.html">perlapio</a>		Perl internal IO abstraction interface

<a href="perlhack.html">perlhack</a>		Perl hackers guide
<a href="perlsource.html">perlsource</a>		Guide to the Perl source tree
<a href="perlinterp.html">perlinterp</a>		Overview of the Perl interpreter source and how it works
<a href="perlhacktut.html">perlhacktut</a> 	Walk through the creation of a simple C code patch
<a href="perlhacktips.html">perlhacktips</a>	Tips for Perl core C code hacking
<a href="perlpolicy.html">perlpolicy</a>		Perl development policies
<a href="perlgov.html">perlgov</a>		Perl Rules of Governance
<a href="perlgit.html">perlgit</a>		Using git with the Perl repository</code></pre>

<h2 id="History"><a class="permalink" href="perl.html#History">#</a>History</h2>

<pre><code class="nohighlight"><a href="perlhist.html">perlhist</a>		Perl history records
<a href="perldelta.html">perldelta</a>		Perl changes since previous version
<a href="perl5340delta.html">perl5340delta</a>	Perl changes in version 5.34.0
<a href="perl5321delta.html">perl5321delta</a>	Perl changes in version 5.32.1
<a href="perl5320delta.html">perl5320delta</a>	Perl changes in version 5.32.0
<a href="perl5303delta.html">perl5303delta</a>	Perl changes in version 5.30.3
<a href="perl5302delta.html">perl5302delta</a>	Perl changes in version 5.30.2
<a href="perl5301delta.html">perl5301delta</a>	Perl changes in version 5.30.1
<a href="perl5300delta.html">perl5300delta</a>	Perl changes in version 5.30.0
<a href="perl5283delta.html">perl5283delta</a>	Perl changes in version 5.28.3
<a href="perl5282delta.html">perl5282delta</a>	Perl changes in version 5.28.2
<a href="perl5281delta.html">perl5281delta</a>	Perl changes in version 5.28.1
<a href="perl5280delta.html">perl5280delta</a>	Perl changes in version 5.28.0
<a href="perl5263delta.html">perl5263delta</a>	Perl changes in version 5.26.3
<a href="perl5262delta.html">perl5262delta</a>	Perl changes in version 5.26.2
<a href="perl5261delta.html">perl5261delta</a>	Perl changes in version 5.26.1
<a href="perl5260delta.html">perl5260delta</a>	Perl changes in version 5.26.0
<a href="perl5244delta.html">perl5244delta</a>	Perl changes in version 5.24.4
<a href="perl5243delta.html">perl5243delta</a>	Perl changes in version 5.24.3
<a href="perl5242delta.html">perl5242delta</a>	Perl changes in version 5.24.2
<a href="perl5241delta.html">perl5241delta</a>	Perl changes in version 5.24.1
<a href="perl5240delta.html">perl5240delta</a>	Perl changes in version 5.24.0
<a href="perl5224delta.html">perl5224delta</a>	Perl changes in version 5.22.4
<a href="perl5223delta.html">perl5223delta</a>	Perl changes in version 5.22.3
<a href="perl5222delta.html">perl5222delta</a>	Perl changes in version 5.22.2
<a href="perl5221delta.html">perl5221delta</a>	Perl changes in version 5.22.1
<a href="perl5220delta.html">perl5220delta</a>	Perl changes in version 5.22.0
<a href="perl5203delta.html">perl5203delta</a>	Perl changes in version 5.20.3
<a href="perl5202delta.html">perl5202delta</a>	Perl changes in version 5.20.2
<a href="perl5201delta.html">perl5201delta</a>	Perl changes in version 5.20.1
<a href="perl5200delta.html">perl5200delta</a>	Perl changes in version 5.20.0
<a href="perl5184delta.html">perl5184delta</a>	Perl changes in version 5.18.4
<a href="perl5182delta.html">perl5182delta</a>	Perl changes in version 5.18.2
<a href="perl5181delta.html">perl5181delta</a>	Perl changes in version 5.18.1
<a href="perl5180delta.html">perl5180delta</a>	Perl changes in version 5.18.0
<a href="perl5163delta.html">perl5163delta</a>	Perl changes in version 5.16.3
<a href="perl5162delta.html">perl5162delta</a>	Perl changes in version 5.16.2
<a href="perl5161delta.html">perl5161delta</a>	Perl changes in version 5.16.1
<a href="perl5160delta.html">perl5160delta</a>	Perl changes in version 5.16.0
<a href="perl5144delta.html">perl5144delta</a>	Perl changes in version 5.14.4
<a href="perl5143delta.html">perl5143delta</a>	Perl changes in version 5.14.3
<a href="perl5142delta.html">perl5142delta</a>	Perl changes in version 5.14.2
<a href="perl5141delta.html">perl5141delta</a>	Perl changes in version 5.14.1
<a href="perl5140delta.html">perl5140delta</a>	Perl changes in version 5.14.0
<a href="perl5125delta.html">perl5125delta</a>	Perl changes in version 5.12.5
<a href="perl5124delta.html">perl5124delta</a>	Perl changes in version 5.12.4
<a href="perl5123delta.html">perl5123delta</a>	Perl changes in version 5.12.3
<a href="perl5122delta.html">perl5122delta</a>	Perl changes in version 5.12.2
<a href="perl5121delta.html">perl5121delta</a>	Perl changes in version 5.12.1
<a href="perl5120delta.html">perl5120delta</a>	Perl changes in version 5.12.0
<a href="perl5101delta.html">perl5101delta</a>	Perl changes in version 5.10.1
<a href="perl5100delta.html">perl5100delta</a>	Perl changes in version 5.10.0
<a href="perl589delta.html">perl589delta</a>	Perl changes in version 5.8.9
<a href="perl588delta.html">perl588delta</a>	Perl changes in version 5.8.8
<a href="perl587delta.html">perl587delta</a>	Perl changes in version 5.8.7
<a href="perl586delta.html">perl586delta</a>	Perl changes in version 5.8.6
<a href="perl585delta.html">perl585delta</a>	Perl changes in version 5.8.5
<a href="perl584delta.html">perl584delta</a>	Perl changes in version 5.8.4
<a href="perl583delta.html">perl583delta</a>	Perl changes in version 5.8.3
<a href="perl582delta.html">perl582delta</a>	Perl changes in version 5.8.2
<a href="perl581delta.html">perl581delta</a>	Perl changes in version 5.8.1
<a href="perl58delta.html">perl58delta</a> 	Perl changes in version 5.8.0
<a href="perl561delta.html">perl561delta</a>	Perl changes in version 5.6.1
<a href="perl56delta.html">perl56delta</a> 	Perl changes in version 5.6
<a href="perl5005delta.html">perl5005delta</a>	Perl changes in version 5.005
<a href="perl5004delta.html">perl5004delta</a>	Perl changes in version 5.004</code></pre>

<h2 id="Miscellaneous"><a class="permalink" href="perl.html#Miscellaneous">#</a>Miscellaneous</h2>

<pre><code class="nohighlight"><a href="perlbook.html">perlbook</a>		Perl book information
<a href="perlcommunity.html">perlcommunity</a>	Perl community information

<a href="perldoc.html">perldoc</a>		Look up Perl documentation in Pod format

<a href="perlexperiment.html">perlexperiment</a>	A listing of experimental features in Perl

<a href="perlartistic.html">perlartistic</a>	Perl Artistic License
<a href="perlgpl.html">perlgpl</a>		GNU General Public License</code></pre>

<h2 id="Language-Specific"><a class="permalink" href="perl.html#Language-Specific">#</a><a id="Language"></a>Language-Specific</h2>

<pre><code class="nohighlight"><a href="perlcn.html">perlcn</a>		Perl for Simplified Chinese (in UTF-8)
<a href="perljp.html">perljp</a>		Perl for Japanese (in EUC-JP)
<a href="perlko.html">perlko</a>		Perl for Korean (in EUC-KR)
<a href="perltw.html">perltw</a>		Perl for Traditional Chinese (in Big5)</code></pre>

<h2 id="Platform-Specific"><a class="permalink" href="perl.html#Platform-Specific">#</a><a id="Platform"></a>Platform-Specific</h2>

<pre><code class="nohighlight"><a href="perlaix.html">perlaix</a>		Perl notes for AIX
<a href="perlamiga.html">perlamiga</a>		Perl notes for AmigaOS
<a href="perlandroid.html">perlandroid</a>		Perl notes for Android
<a href="perlbs2000.html">perlbs2000</a>		Perl notes for POSIX-BC BS2000
<a href="perlcygwin.html">perlcygwin</a>		Perl notes for Cygwin
<a href="perldos.html">perldos</a>		Perl notes for DOS
<a href="perlfreebsd.html">perlfreebsd</a> 	Perl notes for FreeBSD
<a href="perlhaiku.html">perlhaiku</a>		Perl notes for Haiku
<a href="perlhpux.html">perlhpux</a>		Perl notes for HP-UX
<a href="perlhurd.html">perlhurd</a>		Perl notes for Hurd
<a href="perlirix.html">perlirix</a>		Perl notes for Irix
<a href="perllinux.html">perllinux</a>		Perl notes for Linux
<a href="perlmacos.html">perlmacos</a>		Perl notes for Mac OS (Classic)
<a href="perlmacosx.html">perlmacosx</a>		Perl notes for Mac OS X
<a href="perlnetware.html">perlnetware</a> 	Perl notes for NetWare
<a href="perlopenbsd.html">perlopenbsd</a> 	Perl notes for OpenBSD
<a href="perlos2.html">perlos2</a>		Perl notes for OS/2
<a href="perlos390.html">perlos390</a>		Perl notes for OS/390
<a href="perlos400.html">perlos400</a>		Perl notes for OS/400
<a href="perlplan9.html">perlplan9</a>		Perl notes for Plan 9
<a href="perlqnx.html">perlqnx</a>		Perl notes for QNX
<a href="perlriscos.html">perlriscos</a>		Perl notes for RISC OS
<a href="perlsolaris.html">perlsolaris</a> 	Perl notes for Solaris
<a href="perlsynology.html">perlsynology</a> 	Perl notes for Synology
<a href="perltru64.html">perltru64</a>		Perl notes for Tru64
<a href="perlvms.html">perlvms</a>		Perl notes for VMS
<a href="perlvos.html">perlvos</a>		Perl notes for Stratus VOS
<a href="perlwin32.html">perlwin32</a>		Perl notes for Windows</code></pre>

<h2 id="Stubs-for-Deleted-Documents"><a class="permalink" href="perl.html#Stubs-for-Deleted-Documents">#</a><a id="Stubs"></a>Stubs for Deleted Documents</h2>

<pre><code class="nohighlight"><a href="perlboot.html">perlboot</a>		
<a href="perlbot.html">perlbot</a>		
<a href="perlrepository.html">perlrepository</a>
<a href="perltodo.html">perltodo</a>
<a href="perltooc.html">perltooc</a>		
<a href="perltoot.html">perltoot</a>		</code></pre>

<p>On a Unix-like system, these documentation files will usually also be available as manpages for use with the <i>man</i> program.</p>

<p>Some documentation is not available as man pages, so if a cross-reference is not found by man, try it with <a href="perldoc.html">perldoc</a>. Perldoc can also take you directly to documentation for functions (with the <b>-f</b> switch). See <code>perldoc --help</code> (or <a href="perldoc.html"><code>perldoc perldoc</code></a> or <code>man perldoc</code>) for other helpful options <a href="perldoc.html">perldoc</a> has to offer.</p>

<p>In general, if something strange has gone wrong with your program and you&#39;re not sure where you should look for help, try making your code comply with <b>use <a href="strict.html">strict</a></b> and <b>use <a href="warnings.html">warnings</a></b>. These will often point out exactly where the trouble is.</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>Perl officially stands for Practical Extraction and Report Language, except when it doesn&#39;t.</p>

<p>Perl was originally a language optimized for scanning arbitrary text files, extracting information from those text files, and printing reports based on that information. It quickly became a good language for many system management tasks. Over the years, Perl has grown into a general-purpose programming language. It&#39;s widely used for everything from quick &quot;one-liners&quot; to full-scale application development.</p>

<p>The language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal). It combines (in the author&#39;s opinion, anyway) some of the best features of <b>sed</b>, <b>awk</b>, and <b>sh</b>, making it familiar and easy to use for Unix users to whip up quick solutions to annoying problems. Its general-purpose programming facilities support procedural, functional, and object-oriented programming paradigms, making Perl a comfortable language for the long haul on major projects, whatever your bent.</p>

<p>Perl&#39;s roots in text processing haven&#39;t been forgotten over the years. It still boasts some of the most powerful regular expressions to be found anywhere, and its support for Unicode text is world-class. It handles all kinds of structured text, too, through an extensive collection of extensions. Those libraries, collected in the CPAN, provide ready-made solutions to an astounding array of problems. When they haven&#39;t set the standard themselves, they steal from the best -- just like Perl itself.</p>

<h1 id="AVAILABILITY"><a class="permalink" href="perl.html#AVAILABILITY">#</a>AVAILABILITY</h1>

<p>Perl is available for most operating systems, including virtually all Unix-like platforms. See <a href="perlport.html#Supported-Platforms">&quot;Supported Platforms&quot; in perlport</a> for a listing.</p>

<h1 id="ENVIRONMENT"><a class="permalink" href="perl.html#ENVIRONMENT">#</a>ENVIRONMENT</h1>

<p>See <a href="perlrun.html#ENVIRONMENT">&quot;ENVIRONMENT&quot; in perlrun</a>.</p>

<h1 id="AUTHOR"><a class="permalink" href="perl.html#AUTHOR">#</a>AUTHOR</h1>

<p>Larry Wall &lt;larry@wall.org&gt;, with the help of oodles of other folks.</p>

<p>If your Perl success stories and testimonials may be of help to others who wish to advocate the use of Perl in their applications, or if you wish to simply express your gratitude to Larry and the Perl developers, please write to perl-thanks@perl.org .</p>

<h1 id="FILES"><a class="permalink" href="perl.html#FILES">#</a>FILES</h1>

<pre><code class="nohighlight">&quot;@INC&quot;			locations of perl libraries</code></pre>

<p>&quot;@INC&quot; above is a reference to the built-in variable of the same name; see <a href="perlvar.html">perlvar</a> for more information.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<pre><code class="nohighlight">https://www.perl.org/       the Perl homepage
https://www.perl.com/       Perl articles
https://www.cpan.org/       the Comprehensive Perl Archive
https://www.pm.org/         the Perl Mongers</code></pre>

<h1 id="DIAGNOSTICS"><a class="permalink" href="perl.html#DIAGNOSTICS">#</a>DIAGNOSTICS</h1>

<p>Using the <code>use <a href="strict.html">strict</a></code> pragma ensures that all variables are properly declared and prevents other misuses of legacy Perl features.</p>

<p>The <code>use <a href="warnings.html">warnings</a></code> pragma produces some lovely diagnostics. One can also use the <b>-w</b> flag, but its use is normally discouraged, because it gets applied to all executed Perl code, including that not under your control.</p>

<p>See <a href="perldiag.html">perldiag</a> for explanations of all Perl&#39;s diagnostics. The <code>use <a href="diagnostics.html">diagnostics</a></code> pragma automatically turns Perl&#39;s normally terse warnings and errors into these longer forms.</p>

<p>Compilation errors will tell you the line number of the error, with an indication of the next token or token type that was to be examined. (In a script passed to Perl via <b>-e</b> switches, each <b>-e</b> is counted as one line.)</p>

<p>Setuid scripts have additional constraints that can produce error messages such as &quot;Insecure dependency&quot;. See <a href="perlsec.html">perlsec</a>.</p>

<p>Did we mention that you should definitely consider using the <b>use <a href="warnings.html">warnings</a></b> pragma?</p>

<h1 id="BUGS"><a class="permalink" href="perl.html#BUGS">#</a>BUGS</h1>

<p>The behavior implied by the <b>use <a href="warnings.html">warnings</a></b> pragma is not mandatory.</p>

<p>Perl is at the mercy of your machine&#39;s definitions of various operations such as type casting, atof(), and floating-point output with sprintf().</p>

<p>If your stdio requires a seek or eof between reads and writes on a particular stream, so does Perl. (This doesn&#39;t apply to sysread() and syswrite().)</p>

<p>While none of the built-in data types have any arbitrary size limits (apart from memory size), there are still a few arbitrary limits: a given variable name may not be longer than 251 characters. Line numbers displayed by diagnostics are internally stored as short integers, so they are limited to a maximum of 65535 (higher numbers usually being affected by wraparound).</p>

<p>You may submit your bug reports (be sure to include full configuration information as output by the myconfig program in the perl source tree, or by <code>perl -V</code>) to <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>.</p>

<p>Perl actually stands for Pathologically Eclectic Rubbish Lister, but don&#39;t tell anyone I said that.</p>

<h1 id="NOTES"><a class="permalink" href="perl.html#NOTES">#</a>NOTES</h1>

<p>The Perl motto is &quot;There&#39;s more than one way to do it.&quot; Divining how many more is left as an exercise to the reader.</p>

<p>The three principal virtues of a programmer are Laziness, Impatience, and Hubris. See the Camel Book for why.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
